﻿using Echars.Common;
using Echars.Common.BLL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Echars.Web.Ashx
{
    /// <summary>
    /// AjaxGetUnitName 的摘要说明
    /// </summary>
    public class AjaxGetUnitName : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            var id = context.Request["zid"];
            var list = EcharsBLL.Instance.GetUnitNoList(id);
            var json = list.T2Json();
            context.Response.ContentType = "text/plain";
            context.Response.Write(json);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}